import request from "@/utils/request";
/**
* @exports 租户-详情
* @param params 
* @returns Promise
*/
export const detail = (params: RestIdParam) => {
    return request.post<RestResult<TenantVO>>("/mgt/tenant/detail", params);
}

/**
* @exports 租户-分页列表
* @param params 
* @returns Promise
*/
export const page = (params: TenantSearchParam) => {
    return request.post<RestResult<PageVO<TenantVO>>>("/mgt/tenant/page", params);
}

/**
* @exports 租户-重置密码
* @param params 
* @returns Promise
*/
export const resetPwd = (params: UserPwdResetParam) => {
    return request.post<RestResult<string>>("/mgt/tenant/resetPwd", params);
}

/**
* @exports 租户-新增
* @param params 
* @returns Promise
*/
export const save = (params: TenantSaveParam) => {
    return request.post<RestResult<IdVO>>("/mgt/tenant/save", params);
}

/**
* @exports 租户-进入租户后台
* @param params 
* @returns Promise
*/
export const tenantLogin = (params: RestIdParam) => {
    return request.post<RestResult<UserLoginVO>>("/mgt/tenant/tenantLogin", params);
}

/**
* @exports 租户-编辑
* @param params 
* @returns Promise
*/
export const update = (params: TenantSaveParam) => {
    return request.post<RestResult<string>>("/mgt/tenant/update", params);
}

/**
* @exports 租户-启用/禁用
* @param params 
* @returns Promise
*/
export const updateStatus = (params: UpdateStatusParam) => {
    return request.post<RestResult<string>>("/mgt/tenant/updateStatus", params);
}
